using UnityEngine;
using System.Collections;

public class EventOnClicCharactersButton : MonoBehaviour {
	
	public static EventOnClicCharactersButton instance = null;
	GUIButton button;
	
	public Camera mainMenuCamera;
	public Collider mainMenuPanelCollider;
	void Start ()
	{
		instance = this;
		button = gameObject.GetComponent<GUIButton>();
		button.OnClickCallback += OnClick;
	}
	
	void OnClick(Vector3 pos){
		
		mainMenuCamera.enabled = false;
		AttributesController.GetInstance().ShowGUI(true,true);
		mainMenuPanelCollider.enabled = false;
	}
}
